package com.example.guestbook.po;

import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.gaeig.base.po.PersistenceObject;
import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Greeting extends PersistenceObject {
  @Persistent
  private User author;

  @Persistent
  private String content;

  public Greeting() {
  }

  public Greeting(User author, String content, Date date) {
    this.author = author;
    this.content = content;
  }

  public User getAuthor() {
    return author;
  }

  public String getContent() {
    return content;
  }

  public void setAuthor(User author) {
    this.author = author;
  }

  public void setContent(String content) {
    this.content = content;
  }
}
